feat(lab7): trivy + PSS restricted + conftest gate#10
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Goal
Complete Lab 7 container security submission with Trivy image and Kubernetes scanning, Pod Security Standards hardening, and a Conftest policy gate.
Changes
Testing
kubectl apply -f labs/lab7/k8s/ready=true phase=Running restarts=0conftest test labs/lab7/k8s/deployment.yaml --policy labs/lab7/policies/pod-hardening.regoand got4 tests, 4 passed, 0 warnings, 0 failures, 0 exceptions20critical and172high findings in thejuice-shopnamespaceArtifacts & Screenshots
submissions/lab7.md β final submission report
labs/lab7/results/trivy-image.txt β Trivy image scan output
labs/lab7/results/trivy-image.json β structured Trivy image scan results
labs/lab7/results/conftest-good.txt β passing Conftest output
labs/lab7/results/pod-spec.yaml β captured pod spec
labs/lab7/results/pod-status.txt β pod status evidence
labs/lab7/results/pod-describe.txt β pod describe output
Title uses
feat(lab7): <topic>styleNo secrets/large temp files committed
submissions/lab7.md present
Task 1 β Trivy image + config scans + Grype comparison
Task 2 β Hardened K8s deployment with PSS restricted + NetworkPolicy
Bonus β Conftest policy passing on hardened + failing on bad manifest